Fix TestActionsCollaborativeOwner#36657
Merged
lunny merged 6 commits intoFeb 17, 2026
Merged
Conversation
silverwind
approved these changes
Feb 17, 2026
lunny
approved these changes
Feb 17, 2026
ChristopherHX
approved these changes
Feb 17, 2026
Contributor
ChristopherHX
left a comment
There was a problem hiding this comment.
1% more code covered by new test, probably because of repo creatin
silverwind
pushed a commit
to silverwind/gitea
that referenced
this pull request
Feb 18, 2026
In go-gitea#32562, I incorrectly assigned mismatched `repo_id` values to the `action_run` and `action_run_job` fixtures used in `TestActionsCollaborativeOwner`. The changes introduced in go-gitea#36173 will cause the test to fail. This PR removes the incorrect fixtures and switches to using mock workflows to test the relevant functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In #32562, I incorrectly assigned mismatched
repo_idvalues to theaction_runandaction_run_jobfixtures used inTestActionsCollaborativeOwner. The changes introduced in #36173 will cause the test to fail. This PR removes the incorrect fixtures and switches to using mock workflows to test the relevant functionality.